package cn.edu.neu.springbootdemo.action;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/")

/*    @Controller +   @ResponseBody    =  @RestController
*      @RequestMapping   @GetMapping @PostMapping
* */
public class HomeAction {
    @RequestMapping("/")
    public String home(){
        return "home";
    }

    @RequestMapping("/login")
    public String login(){
        return "login";
    }
}
